package com.liuyk.mvp.v.m;

import android.content.Context;
import android.os.Handler;
import android.util.Log;

import com.liuyk.entity.UserInfo;

/**
 * DESC
 * <p>
 * Created by Administrator on 2020/1/10.
 */

public class LoginModel {

    public LoginModel() {

    }

    public LoginModel(Context context) {

    }

    public void login(final LoginCallBack callBack) {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                callBack.success(new UserInfo());
            }
        }, 1000);
    }

    public void test() {
        Log.i("dagger2", "dagger2");
    }

    public interface LoginCallBack {
        void success(UserInfo userInfo);

        void fail(String msg);
    }
}
